<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<title>物流管理</title>
		<link href="css/common.css" rel="stylesheet" type="text/css" />
		<link href="css/normolize.css" rel="stylesheet" type="text/css" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<!--[if IE 9]> <link href="css/ieHack9.css" rel="stylesheet" type="text/css" /> <![endif]-->
		<!--[if IE 8]> <link href="css/ieHack.css" rel="stylesheet" type="text/css" /><link href="css/ieHack8.css" rel="stylesheet" type="text/css" /> <![endif]-->
		<!--[if lte IE 7]> <link href="css/ieHack.css" rel="stylesheet" type="text/css" /> <![endif]-->
	</head>

	<body>
		<script src="js/tpl/header.js" type="text/javascript" charset="utf-8"></script>
		<div class="page-wrapper productlist minwidth border" id="page-wrapper">
			<div class="line"></div>
			<script src="js/tpl/adminMenu.js" type="text/javascript" charset="utf-8"></script>
			<div class="page-content">
				<div class="tablist">
					<ul>
						<li class="tabItem">
							<a href="areaWuliu.html">区域物流</a>
						</li>
						<li class="tabItem active">
							<a href="wuliuManage.html#area">物流管理</a>
						</li>
					</ul>
				</div>

				<div class="page-container">
					<div class="page-form">
						<div>
							<span class="btn blue addPro  fr"><i class="icon icon_add blue"></i> 添加物流</span>
						</div>
						<div class="clearfix"></div>

						<div class="form">
							<form class="inline-form">
								<input type="hidden" id="pageNo" name="pageNo"  />
								<div>
									<label>物流公司：</label>
									<input type="text" placeholder="请输入物流公司" style="width: 129px;" />
								</div>
								<div>
									<label>物流电话：</label>
									<input type="text" placeholder="请输入物流电话" style="width: 129px;" />
								</div>
								<input type="button" value="搜索" class="search-input-button" />
								<input type="button" value="重置" class="search-input-button bgblue" onclick="resetForm()" />
							</form>
						</div>
					</div>
					<div class="table">
						<div class="tablelist">
							<table>
								<thead>
									<tr>
										<th>物流公司</th>
										<th>物流编码</th>
										<th>物流电话</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody id="itemContainer">
									<tr>
										<td>
											<p class="">顺丰速运</p>
										</td>
										<td>
											<p>M2488Z1357SD1231563321486</p>
										</td>
										<td>
											<p>18606036400</p>
										</td>
										<td>
											<div>
												<div class="hover editwuliu inline-block" data-id='1'><i class="icon icon_edit " ></i><span>修改</span> </div>
												<div class="hover deletewuliu inline-block tabletop"  data-id='1' style="margin-left:20px;"><i class="icon icon_delete "></i><span>删除</span></div>
											</div>
										</td>
									</tr>

									<tr>
										<td>
											<p class="">顺丰速运</p>
										</td>
										<td>
											<p>M2488Z1357SD1231563321486</p>
										</td>
										<td>
											<p>18606036400</p>
										</td>
										<td>
											<div>
												<div class="hover editwuliu inline-block" data-id='2'><i class="icon icon_edit "></i><span>修改</span> </div>
												<div class="hover  deletewuliu inline-block tabletop"  data-id='2' style="margin-left:20px;"><i class="icon icon_delete "></i><span>删除</span></div>
											</div>
										</td>
									</tr>

								</tbody>
							</table>
						</div>
                       
						<div class="pagelist fr">
							<div class=" pagedesc fl">当前<span class="currentPage"></span>/<span class="totalpage"></span>，每页<span class="perpage"></span>条，共<span class="totalnumber"></span>条</div>
							<div class="pagination inline-block fl"></div>
							<div class="inline-block fl">
								到第<input type="text" value="" class="gotopage" />页 <input type="button" value="跳转" class="search-input-button border-radius bgblue gotopage_button"></span>
							</div>

						</div>

					</div>

				</div>

			</div>
		</div>

		<div class="footer">
			<div class="footercontainer">
				<ul>
					<li>
						<a href="#">关于我们</a>
					</li>
					<li>
						<a href="#">服务与支持</a>
					</li>
					<li>
						<a href="#">常见问题</a>
					</li>
					<li>
						<a href="#">人才招聘</a>
					</li>
					<li>
						<a href="#">加盟合作</a>
					</li>
				</ul>

				<div style="margin-top:13px;">版权所有@ 2015 - 2016 深圳在乎传媒科技有限公司 粤ICP备15107022-1号</div>
			</div>

		</div>

		<!--这里是删除产品的弹框（无法删除）-->

	</body>

	<script src="js/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/page/jPages.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/page/pageFun.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/layer/layer.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/layFun.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/js.js" type="text/javascript" charset="utf-8"></script>

	<script>
	
		$(function() {
			roleObj.pageinit(1, 10, 50);
			roleObj.addRole();
			roleObj.editRole();
			roleObj.deleteRole();
		 
		})
		
        //分页提交 
        function submitFun(currentPage){
        	
        }
        //id:要删除的ID名称
        function deleteFun(id,index){
        	layer.close(index);
        }

		var roleObj = {
			'id': '',
			'_self':'',
			'pageinit': function(currentpage, perPage, totalNumber) {
				var pageObj = new pageFun();
				pageObj.pageNoObj = $('#pageNo');
				pageObj.submitFun = function() {
					var currentPage = pageObj.pageNoObj.val(); //这个是当前页的页码
					submitFun(currentPage);
				}
				/*参数每页多少个,当前页,总个数,容器的ID*/
				pageObj.init(perPage, currentpage, totalNumber, 'itemContainer');
			},
			'addRole': function() {
				$('.addPro').click(function() {
					layObj.open('addWuliu.html',420, 350, '添加物流');
				})
			},
			"editRole": function() {
				_self = this;
				$('.editwuliu').click(function() {
					_self.id = $(this).attr('data-id');
					layObj.open('addWuliu.html', 420, 350 , '修改物流', _self.assignId);
				});
			},
			"assignId":function(layero, index){
				var body = layer.getChildFrame('body', index);
				var iframeWin = window[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象，执行iframe页的方法：iframeWin.method();
				body.find('#aid').val(_self.id);
			},
			'deleteRole':function(){
				$('.deletewuliu').click(function() {
					_self.id = $(this).attr('data-id');
				　　  var yesarray={'msg':'确定','callback':_self.yseFun};
					var noarray={'msg':'取消','callback':_self.noFun};
					layObj.confirm('确定要删除该物流么？','删除',400,180,'confirmclass',yesarray,noarray);
				});
			},
			'yseFun':function(index){
				//_self.id：这个是要删除的ID名字
				var body = layer.getChildFrame('body', index);
				deleteFun(_self.id,index);
			
			},
			'noFun':function(index){
				layer.close(index);
			}
			
			
		}
		
 
		
		
	</script>

</html>